/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-11-5      SummerGift   first version
 */

#ifndef __COMM_H__
#define __COMM_H__

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include <appconfig.h>
extern un16bit_type weiteholdReg[32];

#define K485_EN 0
#if K485_EN
#define k1_485_PIN    GET_PIN(B, 0)
#define TXEN485_K1() rt_pin_write(k1_485_PIN,PIN_HIGH)
#define RXEN485_K1() rt_pin_write(k1_485_PIN,PIN_LOW)
void lora_tran_data(unsigned char*data, unsigned int len);
#endif
#endif /* __COMM_H__ */

